<?php


namespace app\service;


class Auth
{

    protected $user = null;


    protected $uid ;


    public function setUser($model)
    {
        $this->user = $model;

        $this->uid = $model->id;
    }

    public function uid()
    {
        return $this->uid;
    }

    public  function user()
    {
        return $this->user;
    }


    public function account()
    {
        return $this->user->accounts;
    }
}
